import * as mobx from 'mobx';
import { ListStore } from '../listStore';
import { WeaTableNew } from 'comsMobx';
import {message} from 'antd';
const { TableStore } = WeaTableNew;
import * as WORKFLOW_CUSTOMFORM from '../../apis/customReportForm';

const { observable, action } = mobx;

export class WFCustomLogStore extends ListStore {

    @observable logModalVisible = false;    //日志

    constructor () {
        super();
        this.toogleLogModal = this.toogleLogModal.bind(this);
        this.doSearch = this.doSearch.bind(this);
        this.setConditionByTree = this.setConditionByTree.bind(this);
        this.reload = this.reload.bind(this);
    }

    @action

    doSearch (params) {

    }

    toogleLogModal (visible = false) {
        if(!visible){
            this.logModalVisible = false;
        }else{
            this.logModalVisible = true;
        }
    }

    setConditionByTree () {
        return ;
    }

    reload () {
        const current = this.tableStore.current;
        this.doSearch({current});
    }

}